import { MockMethod } from "vite-plugin-mock";
const url = "/api/v1/menus/routes";
const method = "get";
const data = {
  code: "00000",
  data: [
    {
      path: "/system",
      component: "Layout",
      redirect: "/system/user",
      meta: {
        title: "系统管理",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "user",
          component: "system/user/index",
          name: "User",
          meta: {
            title: "用户管理",
            icon: "user",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "role",
          component: "system/role/index",
          name: "Role",
          meta: {
            title: "角色管理",
            icon: "role",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "menu",
          component: "system/menu/index",
          name: "Menu",
          meta: {
            title: "菜单管理",
            icon: "menu",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "dept",
          component: "system/dept/index",
          name: "Dept",
          meta: {
            title: "部门管理",
            icon: "tree",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "dict",
          component: "system/dict/index",
          name: "DictType",
          meta: {
            title: "字典管理",
            icon: "dict",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
      ],
    },
    {
      path: "/stationManage",
      component: "Layout",
      meta: {
        title: "站点管理",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "",
          component: "stationManage/index",
          name: "stationManage",
          meta: {
            title: "站点管理",
            icon: "system",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: false,
          },
        },
      ],
    },
    {
      path: "/monitor",
      component: "Layout",
      redirect: "/monitor/station",
      meta: {
        title: "实时监控",
        icon: "monitor",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
      children: [
        {
          path: "station",
          component: "monitor/station/index",
          name: "station",
          meta: {
            title: "充电桩监控",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
        {
          path: "carema",
          component: "monitor/carema/index",
          name: "carema",
          meta: {
            title: "视频监控",
            hidden: false,
            roles: ["ADMIN"],
            keepAlive: true,
          },
        },
      ],
    },
  ],
  msg: "一切ok",
};

export default [
  {
    url: url,
    method: method,
    response: () => {
      return data;
    },
  },
] as MockMethod[];
